package xyz.awesomeman;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
//	只扫同级包 自动扫包
//@EnableAutoConfiguration
//@Configuration
//@ComponentScan 这个三个注解和@SpringBootApplication功能相同
@SpringBootApplication
@MapperScan(basePackages= {"xyz.awesomeman.mapper"})    
public class App extends SpringBootServletInitializer {
	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(App.class);
    }
}
